package com.syz.mall.mapper;

import com.syz.mall.pojo.Category;
import com.syz.mall.pojo.Category;
import com.syz.mall.pojo.query.CategoryQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CategoryMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Category record);

    int insertSelective(Category record);

    Category selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Category record);

    int updateByPrimaryKey(Category record);

    List<Category> selectAll(CategoryQuery categoryQuery);

    int deleteAll(Integer[] ids);

    List<Category> selectByCategoryId(Integer id);

    List<Category> selectAllTop();

    List<Category> selectAllSec(Integer topId);
    List<Category> selectSecondCategoryList();
    Category selectTopBuId(Integer id);

    int changeStatus(@Param("id")Integer id, @Param("status")Integer status);

}